View or edit SQL statements in a query

If you know Structured Query Language (SQL), you can use SQL to edit the SQL SELECT statement for a query.

  1. Create a new query. Do not return the results to Microsoft Excel.
  2. Click SQL View.

    The Tables pane displays the SQL SELECT statement that corresponds to the query.

  3. Type any changes you want to make into the SQL statement.

    To add a new line, press RETURN.

Notes

Related topics

Create a query

Return a result set to Microsoft Excel